package com.ruoyi.warehousemanager.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.warehousemanager.domain.Item;
import com.ruoyi.warehousemanager.domain.Operate;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.Date;
import lombok.Data;

@Data
public class OperateVO extends Operate {
    private static final long serialVersionUID = 1L;

    @Excels({
            @Excel(name="所属仓库",targetAttr = "deptName",type = Excel.Type.EXPORT)
    })
    /*
     * 联合实体
     */
    private SysDept sysDept;
    @Excels({
            @Excel(name="物品名称" ,targetAttr = "itemName" ,type = Excel.Type.EXPORT),
            @Excel(name="计量单位" ,targetAttr = "itemUnit" ,type = Excel.Type.EXPORT)
    })
    /*
     * 联合实体
     */
    private Item item;
    /*
     * 查询参数
     */
    private String itemName;

    public Item getItem() {
        return item;
    }
    public void setItem(Item item) {
        this.item = item;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("operateId", getOperateId())
                .append("itemId", getItemId())
                .append("deptId", getDeptId())
                .append("itemNum", getItemNum())
                .append("operateTime", getOperateTime())
                .append("operateType", getOperateType())
                .append("operateRemark", getOperateRemark())
                .toString();
    }
}
